a4d5ce283d0b36a5ef56c10324ff28f2597fbc76,opennms-services/src/test/java/org/opennms/netmgt/threshd/ThresholdingVisitorTest.java,ThresholdingVisitorTest,testLatencyThresholdingSet,#,865
Before Change
// Test Rearm
List<Event> rearmEvents = null;
if (thresholdingSet.hasThresholds("http")) {
attributes.put("http", 40.0);
rearmEvents = thresholdingSet.applyThresholds("http", attributes);
assertTrue(rearmEvents.size() == 1);
After Change
assertTrue(triggerEvents.size() == 0);
}
}
if (thresholdingSet.hasThresholds(attributes)) {
log().debug("testLatencyThresholdingSet: run number 5");
triggerEvents = thresholdingSet.applyThresholds("http", attributes);
assertTrue(triggerEvents.size() == 1);